package main

import (
	"fmt"
	"math/rand"
)

func main() {
	demo1(28)
}

// Intn返回左闭右开的随机一个整数。
func demo() {
	var num = rand.Intn(10) + 1
	fmt.Println(num)
	num = rand.Intn(10) + 1
	fmt.Println(num)
}

func demo1(day int) {
	const distance = 56000000  //KM
	var speed = distance / day //km/h
	fmt.Println(speed)
}
